<?php
use think\facade\Route;

//用户登录
Route::get('user/login','User/login');
Route::get('user/verifyToken','User/verifyToken');

Route::group(function () {
    //得到物品分类列表
    Route::get('goods/getCateList','Goods/getCateList');
    //物品所属空间列表
    Route::get('goods/getSpaceList','Goods/getSpaceList');
    //取得物品所在的空间及父空间名称
    Route::get('goods/getSpaceKv/:id','Goods/getSpaceKv');
    Route::get('user/test','User/test');
    //用户相关资源路由
    Route::resource('user', 'User');
    //物品相关资源路由
    Route::resource('goods', 'Goods');
})->middleware('check');


return [
    'http_exception_template'   => [
        404 => \think\facade\App::getAppPath() . '404.json',
    ],
    'token_Key' => '!@#$%*&',
];